﻿@namespace MXERP.Client.Pages
<Modal Title="修改角色" Width="400" Height="350">
    <ChildContent>
        <MudForm @ref="Form" Model="Model" Validation="@(Validator.ValidateValue)">
            <MudGrid>
                <MudItem xs="12">
                    <MudTextField 
                        @bind-Value="Model.Name"
                        Label="角色名称" 
                        Variant="Variant.Outlined" 
                        Margin="Margin.Dense" 
                        ShrinkLabel
                        For="@(() => Model.Name)"
                        Required="true" />
                </MudItem>
                <MudItem xs="12">
                    <MudTextField T="string" Label="备注" Variant="Variant.Outlined" ShrinkLabel Lines="2" />
                </MudItem>
            </MudGrid>
        </MudForm>
    </ChildContent>
    <ButtonContent>
        <MudButton 
            Variant="Variant.Filled" 
            Color="Color.Primary" 
            StartIcon="@Icons.Material.Filled.Save"
            OnClick="Save">保存</MudButton>
    </ButtonContent>
</Modal>